import http from './index'

export const getList = (params) => http({
  url: '/company/list',
  method: 'GET',
  params,
})
export const getList2 = (params) => http({
  url: '/company/list',
  method: 'GET',
  params,
})
export const update = (data) => http({
  url: '/company/update',
  method: 'POST',
  data
})
export const getItem = (params) => http({
  url: '/company/item',
  method: 'GET',
  params,
})
export const create = (data) => http({
  url: '/company/add',
  method: 'POST',
  data
})

export const delOne = (data) => http({
  url: '/company/delete',
  method: 'POST',
  data
})
